package com.xbs.service.user;

import com.xbs.dao.user.UserDao;
import com.xbs.entity.UserEntity;

public class LoginService {
	UserDao ud;
	UserEntity user;
	public LoginService() {
		ud = new UserDao();
		user = new UserEntity();
	}
	
	/**
	 * 1.登录时，通过手机号获取该用户的密码
	 * @param tel
	 * @return
	 */
	public UserEntity getPwd(String tel){
		user = ud.selTel(tel);
		return user;
	}
}
